package zhangzhongyuan.zuoye3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class  userServiceimpl implements userService {
    @Autowired
    private userMapper usermapper;

    @Override
    public List<User> userList(Integer id) {
        return usermapper.userList(id);
    }

    @Override
    public void userInsert(User user) {
        usermapper.userInsert(user);
    }

    @Override
    public void userDelete(Integer id) {
        usermapper.userDelete(id);
    }

    @Override
    public void userUpdate(Integer id,User user) {
        usermapper.userUpdate(id, user);
    }
}